package com.execjar.utils;

/**
 * @author zhuzi
 * 2024/12/18 22:8
 */
public enum ConstantCode {
    OK(200, "成功"),
    ERROR(999, "系统异常"),
    NET_ERROR(904, "网络异常"),
    NOT_INSERT(901, "新增失败"),
    NOT_MODIFIED(902, "更新失败"),
    NOT_DELETE(903, "删除失败"),
    NOT_VERIFY(400, "请求参数异常"),
    NOT_ZDY(998, "自定义异常"),
    NOT_IDEMP(202, "接口调用频繁");

    private int code;
    private String name;

    private ConstantCode(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
